package com.urea.system.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.urea.common.annotation.Excel;
import com.urea.common.core.domain.BaseEntity;

/**
 * 账户流水对象 t_customer_account_detail
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@TableName("t_customer_account_detail")
@Data
@ToString
public class CustomerAccountDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 依赖的uid */
    @Excel(name = "依赖的uid")
    @ApiModelProperty( "依赖的uid")
    private Long refUid;

    /** 依赖账户id */
    @Excel(name = "依赖账户id")
    @ApiModelProperty( "依赖账户id")
    private Long refAccount;

    /** 收支;0收入，1支出 */
    @Excel(name = "收支;0收入，1支出")
    @ApiModelProperty( "收支;0收入，1支出")
    private String income;

    /** 是否为客户流水;0否，1是 */
    @Excel(name = "是否为客户流水;0否，1是")
    @ApiModelProperty( "是否为客户流水;0否，1是")
    private String customer;

    /** 金额 */
    @Excel(name = "金额")
    @ApiModelProperty( "金额")
    private BigDecimal amount;

    /** 余额 */
    @Excel(name = "余额")
    @ApiModelProperty( "余额")
    private BigDecimal balance;

    /** 交易类型;0充值，1加注，2退款，3提现 */
    @Excel(name = "交易类型;0充值，1加注，2退款，3提现")
    @ApiModelProperty( "交易类型;0充值，1加注，2退款，3提现")
    private Integer type;

    /** 依赖业务id */
    @Excel(name = "依赖业务id")
    @ApiModelProperty( "依赖业务id")
    private String refId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty( "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;


}
